package com.liao.badminton.mapper;

import com.liao.badminton.code.*;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import com.liao.badminton.entity.SystemUserRole;
import org.apache.ibatis.annotations.Param;
import java.util.List;

/**
* @author liaocheng
* @date 2024-10-31
* description:用户和角色关联表
*/
@Mapper
public interface SystemUserRoleMapper extends BaseMapper<SystemUserRole> {
    int updateBy(SystemUserRole systemUserRole);
    int add(SystemUserRole systemUserRole);
    List<SystemUserRole> findByPageParam(PageParam<SystemUserRole> systemUserRolePageParam);
    int countByPageParam(PageParam<SystemUserRole> systemUserRolePageParam);
    int deletes(@Param("ids") List<Long> ids);
    List<SystemUserRole> findByIds(@Param("ids") List<Long> ids);
    void addBatch(List<SystemUserRole> list);
    SystemUserRole findById(@Param("id") Long id);
    List<SystemUserRole> findByParam(@Param("param") SystemUserRole param);
}
